﻿using carShop.Models.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace carShop.Models
{
    public class Car: IObjectState
    {
        public int Id { get; set; }
        public string Name { get; set; }
        public Specification Specification { get; set; }
        public double Price { get; set; }
        public DateTime DatePosted { get; set; }
        public DateTime LastDateModified { get; set; }
        public bool IsFeatured { get; set; }
        public string Status { get; set; }

        //connectors that represents the relationships
        //this properties are not reflected in the database
        public virtual ICollection<Image> Image { get; set; }
        public virtual ICollection<Video> Video { get; set; }

        public State State { get; set; }
    }
}